package com.dm.testkotal.fragment

import android.content.Context
import android.util.Log
import android.widget.BaseAdapter
import android.widget.TextView

import com.dm.testkotal.AbsAdapter
import com.dm.testkotal.R
import com.dm.testkotal.bean.Hello

/**
 * Created by Administrator on 2016/5/3.
 */
class Sadapter(applicationContext: Context, content_java: Int, list: List<Hello>) : AbsAdapter<Hello>(applicationContext, content_java, list) {

    init {
        Log.d("AAAAA","======++================"+list.size);
    }
    override fun bindView(vHolder: AbsAdapter.ViewHolder, data: Hello) {
        Log.d("AAAAA","======================"+data.hello);
        val textHello=vHolder.getView(R.id.text1) as TextView
        val textTitile=vHolder.getView(R.id.text2) as TextView
        textHello.text=data.hello
        textTitile.text=data.text;
        Log.d("AAAAA","======================"+data.hello);
    }
}
